/**
 * 
 */
package intradomain;


import wdmsim.PhysicalTopology;
import wdmsim.SimulationRunner;
import wdmsim.Simulator;
import wdmsim.TrafficGenerator;

import controlPlane.IntradomainControlPlane;

import controlPlane.MyIntradomainControlPlane;


/**
 * @author alissonslp
 *
 */
public class IntraDomainSimulator {

	
	//public static IntradomainVirtualTopology vt;
	public static IntradomainControlPlane intradomainControlPlane;
	public static TrafficGenerator trafficGenerator;
	
	public IntraDomainSimulator() {
		
		try {
			// build physicalTopology
			PhysicalTopology pt = PhysicalTopology.getInstance();
			
			if(Simulator.RWA_MODE.matches("pce-based")) {
				//Domain.processPCEs();
			} else {			
				// instantiate virtualTopology
				//IntradomainVirtualTopology virtualTopology = IntradomainVirtualTopology.getInstance();
			}
			
			
			// define controlPlane type
			IntradomainControlPlane intradomainControlPlane = MyIntradomainControlPlane.getInstance();
			
			// generate traffic
			trafficGenerator = new TrafficGenerator();
			
			// tracer
			
			new SimulationRunner();
			
			
		} catch (Throwable t) {
			t.printStackTrace();
		}
	}
}
